<!DOCTYPE html>
<html>
	<head>
<meta charset="utf-8">
<title>添加配件操作记录</title>
<meta name="renderer" content="webkit">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<link rel="stylesheet" href="/res/layui/css/layui.css"  media="all">
<link rel="stylesheet" href="/res/css/style.css" media="all">
<style>
	.layui-table {
		width:600px!important;;
	}
	/* 加载的表格样式---提高优先级 */
	
	.layui-form-label {
		width: 140px
	}
</style>
<body>
<div class="layui-fluid" style="padding-top:10px;">
<span class="layui-breadcrumb">
  <a><cite>首页</cite></a>
  <a><cite id="Title">添加配件操作记录</cite></a>
</span>
<div class="layui-clear"></div>
<form id="form_edit" class="layui-form" style="margin-top:30px;" action="">
	<div class="layui-form-item">			
		<label class="layui-form-label"><span style="color:red;">*</span>选择配件</label>
		<div class="layui-input-inline">
		        <input type="text" id="pName" placeholder="请选择配件"  autocomplete="off" class="layui-input">
				<input type="hidden" id="pid" name="pid" autocomplete="off" class="layui-input" lay-verify="fpid" lay-filter="fpid">
		</div>
		<label class="layui-form-label">配件所属设备</label>
		<div class="layui-input-inline">
		        <input type="text" id="eqName" placeholder=""  autocomplete="off" class="layui-input" disabled="true">
		</div>
	</div>
	<div class="layui-form-item">	
	    <label class="layui-form-label"><span style="color:red;">*</span>记录类型</label>
       	<div class="layui-input-inline">				    	
		    <select name="type" id="type" placeholder="状态" lay-verify="ftype" lay-filter="ftype">
		      <option value="">请选择状态</option>
		      <option value="1">入库</option>
		      <option value="2">领用</option>
		      <option value="3">归还</option>	 
		    </select>    						   
	    </div>
	    
	    <label class="layui-form-label"><span style="color:red;">*</span>配件数量</label>
	    <div class="layui-input-inline">
	      <input type="text"  id="count" name="count" lay-verify="fcount"  placeholder="" autocomplete="off" class="layui-input" oninput="value=value.replace(/[^\d]/g,'')"/>
	    </div>
   	</div>
   	<div class="layui-form-item">
		 <label class="layui-form-label"><span style="color:red;">*</span>领用/归还人</label>
	    <div class="layui-input-inline">
	      <input type="text"  id="operator" name="operator" lay-verify="foperator"  placeholder="" autocomplete="off" class="layui-input" />
	    </div>
	     <label class="layui-form-label"><span style="color:red;">*</span>领用/归还人手机号</label>
	    <div class="layui-input-inline">
	      <input type="text"  id="operatorTel" name="operatorTel" lay-verify="foperatorTel"  placeholder="" autocomplete="off" class="layui-input"/>
	    </div>
	</div>	
	<div class="layui-form-item">
		<label  class="layui-form-label">备注</label>
		<div class="layui-input-inline" style="width:530px;">
		   <textarea id="remarks" name="remarks" rows="5" lay-verify="fremarks" placeholder="填写备注......" class="layui-textarea"></textarea>
		</div>
	</div>					
	<div class="layui-form-item" style="margin-top:30px">
	    <div class="layui-input-block">
	      <button class="layui-btn layui-btn-normal" lay-submit lay-filter="formDemo">提交</button>
		  <button class="layui-btn layui-btn-primary" onclick="historyBack()">返回</button>
	    </div>
	</div>
</form>
<!--选择设备-->
<div id="form_addequment" class="layui-form" style="margin-top:30px;margin-left:30px;display:none">
		<div class="demoTable">
			<div class="layui-input-inline">						   
		       <input type="text" name="name" id="nameDemoTable" placeholder="配件名称" class="layui-input"   condition=""/>					
		    </div>
		    <div class="layui-input-inline">						   
		       <input type="text" name="equipmentName" id="equipmentName" placeholder="设备名称" class="layui-input"   condition=""/>					
		    </div>
			<div class="layui-input-inline" id="searchbutton">
	             <button class="layui-btn layui-btn-normal" lay-submit lay-filter="queryData1"><i class="layui-icon ">&#xe615</i></button>      		
	        </div>
	        <div class="layui-input-inline" style="margin-left:8%">
	              <button class="layui-btn layui-btn-normal" data-type="equipmentId" id="formsure">确定添加</button>      		
	        </div>
	        <div class="layui-tab-item layui-show" >
	    		<table class="layui-hide" id="equipmentData" lay-filter="equipmentDataTest"></table>
	    	</div>	
		</div>																																							
	</div>
</body>
<script src="/res/js/common/jquery-3.2.1.min.js"></script>
<script src="/res/js/common/app.js"></script>	
<script src="/res/js/validate.js"></script>
<script src="/res/layui/layui.js"></script>
<script type="text/javascript" src="/res/js/equipmentRecord/AddPart.js" ></script>
<script type="text/javascript" src="/res/js/equipmentRecord/equipmentRecord_form.js" ></script>
</html>